package oop.core.view;

import java.awt.Dimension;
import java.awt.GraphicsConfiguration;

import javax.swing.JFrame;

/**
 * Main Frame is the JFrame that  holds the game.
 * Simply has a close operation defined and the version
 * of our game in its title.
 *
 */
public class MainFrame extends JFrame {

	private final Dimension GAME_FRAME_SIZE = new Dimension(1000, 800);
	
	public MainFrame(GraphicsConfiguration graphicsConfiguration)
	{
		super(graphicsConfiguration);

		this.setTitle("Bitmap Warrior v2.0");
		this.setSize(GAME_FRAME_SIZE);
		this.setLocation(100, 100);

		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//		this.setIgnoreRepaint(true);	// Necessary sometimes, not necessary at others

		this.setLayout(null);
		this.setResizable(false);
		this.setVisible(true);
	}
}
